package sicnu.cs.aps.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import sicnu.cs.aps.domain.entity.ActivityAudit;
import sicnu.cs.aps.domain.form.ActivityAuditForm;
import sicnu.cs.aps.domain.form.ActivityAuditQueryForm;
import sicnu.cs.aps.domain.vo.TimeEventVo;

import java.util.List;

/**
 * @author CaiKe
 * @date 2022/5/27 12:45
 */
@Mapper
public interface ActivityAuditMapper extends BaseMapper<ActivityAudit> {

    /**
     * 根据活动Id获取活动审核信息
     *
     * @param activityId
     * @return
     */
    ActivityAudit selectByActivityId(@Param("activityId") Long activityId);

    /**
     * 分页查询活动审核信息
     *
     * @param form 查询信息
     * @return 查询结果列表
     */
    List<ActivityAudit> selectByQueryPage(@Param("query") ActivityAuditQueryForm form);

    /**
     * 通过队伍id查询队伍审核生命线
     *
     * @param teamId 队伍id
     * @return 所有的当前队伍的审核信息
     */
    List<ActivityAudit> listByTeamId(@Param("teamId") Long teamId);


}
